package com.hiv.client.model.weixin;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 用户下单model
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "下单响应Model")
public class UserPurchaseRes implements Serializable {

  @ApiModelProperty(value = "订单Id", required = true)
  private Long orderId;

  @ApiModelProperty(value = "订单编号", required = true)
  private String orderNum;

  @ApiModelProperty("微信jsapi支付，商户申请的公众号对应的appid")
  private String appId;

  @ApiModelProperty("微信jsapi支付，时间戳")
  private String timeStamp;

  @ApiModelProperty("微信jsapi支付，随机字符串")
  private String nonceStr;

  @ApiModelProperty("微信jsapi支付，签名方式,默认为RSA，仅支持RSA")
  private String signType;

  @ApiModelProperty("微信jsapi支付，订单详情扩展字段：'prepay_id=xxxxxx'")
  private String detailExtend;

  @ApiModelProperty("微信jsapi支付，签名(签名，使用字段appId、timeStamp、nonceStr、package计算得出的签名值)")
  private String paySign;

}
